<%@ Page Language="C#" MasterPageFile="~/GUI/Webpage/MasterTunga.master" AutoEventWireup="true" CodeFile="OrderFood.aspx.cs" Inherits="GUI_Webpage_OrderFood" Title="ONLINE ORDER FOOD |TUNGA Restaurants" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="tdHolder" border="0" cellpadding="0" cellspacing="0">
         <tr>
            <td>
                <table class="TableOrderContent" border="0" cellpadding="0" cellspacing="0">
                         <tr>
                             <td colspan="2">
                                 <img src="../../GUI/Image/WebsiteTemplate/30-4/Title_OrderFood.jpg" alt="Order Food" />
                             </td>
                         </tr>
                         <tr>
                              <td>
                                  <table class="TableOrderContent" cellpadding="5"; cellspacing="5"> 
                                       <tr>
                                           <td class="tdTextContent">
                                             <table class="TableOrderContent" border="0" cellpadding="5" cellspacing="5">
                                                               <tr>                                                                   
                                                                   <td >
                                                                       <strong><em>
                                                                       Select restaurant near your home</em></strong></td>
                                                                   <td>
                                                                       <strong><em>
                                                                       Time</em></strong></td>
                                                                   <td>
                                                                       <strong>
                                                                       Type of food </strong>
                                                                   </td>
                                                               </tr>
                                                               <tr>
                                                                   <td>
                                                                       <asp:DropDownList ID="drpRestaurant" runat="server">
                                                                      
                                                                       </asp:DropDownList>
                                                                   </td>
                                                                   <td>
                                                                       <asp:DropDownList ID="drpTime" class="controlText" runat="server" OnSelectedIndexChanged="drpTime_SelectedIndexChanged">
                                                                           <asp:ListItem> </asp:ListItem>
                                                                           <asp:ListItem>8</asp:ListItem>
                                                                           <asp:ListItem>9</asp:ListItem>
                                                                           <asp:ListItem>10:00AM</asp:ListItem>
                                                                           <asp:ListItem>11:00AM</asp:ListItem>
                                                                           <asp:ListItem>12:00 AM</asp:ListItem>
                                                                           <asp:ListItem>1:00 PM</asp:ListItem>
                                                                           <asp:ListItem>2:00 PM</asp:ListItem>
                                                                           <asp:ListItem>3:00 PM</asp:ListItem>
                                                                           <asp:ListItem>4:00 PM</asp:ListItem>
                                                                           <asp:ListItem>5:00 PM</asp:ListItem> 
                                                                           <asp:ListItem>6:00 PM</asp:ListItem>
                                                                           <asp:ListItem>7:00 PM</asp:ListItem>
                                                                           <asp:ListItem>8:00 PM</asp:ListItem>
                                                                           <asp:ListItem>9:00 PM</asp:ListItem>
                                                                           <asp:ListItem>10:00 PM</asp:ListItem>
                                                                           
                                                                       </asp:DropDownList>
                                                                   </td>
                                                                   <td><asp:DropDownList ID="drpTypeFood" class="controlText" runat="server">
                                                                       </asp:DropDownList>
                                                                   </td>
                                                                   <td class="tdButton">
                                                                       <asp:Button ID="btnFind" runat="server" Text="Find food" class="button" OnClick="btnFind_Click"/>
                                                                   </td>
                                                              </tr>
                                                 <tr>
                                                     <td >
                                                     </td>
                                                     <td>
                                                         &nbsp;
                                                     </td>
                                                     <td>
                                                     </td>
                                                     <td class="tdButton">
                                                     </td>
                                                 </tr>
                                                              
                                                 <tr>
                                                     <td colspan="4">
                                                        <table class="TableOrderContent" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td>
                                                               <table>
                                                                    <tr>
                                                                        <td>
                                                                            <asp:DataList ID="dlListFoodByType" runat="server" Width="605px"
                                                                            RepeatColumns="3" CssClass="TableOrderContent"
                                                                             BackColor="White" BorderColor="#3366CC" BorderStyle="None" 
                                                                             BorderWidth="1px" CellPadding="4" GridLines="Both" OnItemCommand="dlListFoodByType_ItemCommand">
                                                                                <ItemTemplate>
                                                                                    <table>
                                                                                     
                                                                                        <tr>
                                                                                            <td colspan="2">
                                                                                            <img src="<%#DataBinder.Eval(Container.DataItem,"foodPicture")%>" alt="<%#DataBinder.Eval(Container.DataItem,"foodName")%>"/>
                                                                                            </td>
                                                                                        </tr>
                                                                                         <tr>
                                                                                            <td colspan="2">
                                                                                                <strong>
                                                                                                </strong>&nbsp;<asp:Label ID="lblFoodName" runat="server" 
                                                                                                Text='<%# DataBinder.Eval(Container.DataItem,"foodName") %>' Font-Bold="True"></asp:Label></td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td colspan="2">
                                                                                                <asp:Label ID="lblFoodID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"foodID") %>' Font-Bold="False" Visible="False"></asp:Label></td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td colspan="2" >
                                                                                                For &nbsp;<asp:Label ID="lblNumberPerson" runat="server" 
                                                                                                Text='<%#DataBinder.Eval(Container.DataItem,"numberOfPerson")%>'></asp:Label> person</td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td >
                                                                                                <strong>
                                                                                                Price:</strong></td>
                                                                                            <td>
                                                                                                $
                                                                                                <asp:Label ID="lblPrice" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"price")%>'></asp:Label></td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                          
                                                                                            <td>
                                                                                                <strong>
                                                                                                Quantity:</strong></td> 
                                                                                            <td>
                                                                                                <asp:TextBox ID="txtQuality" runat="server" width="80px">1</asp:TextBox></td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td colspan="2" >
                                                                                                </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td colspan="2">
                                                                                                <asp:Button ID="btnAddToOrder" runat="server" Text="Add to order" OnClick="btnAddToOrder_Click" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"foodID")%>' /></td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </ItemTemplate>
                                                                                <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                                                                                <SelectedItemStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                                                                                <ItemStyle ForeColor="#003399" BackColor="White" />
                                                                                <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                                                                                <HeaderTemplate>
                                                                                    MENU INFORMATION
                                                                                </HeaderTemplate>
                                                                                <FooterTemplate>
                                                                                    &nbsp;&nbsp;
                                                                                </FooterTemplate>
                                                                            </asp:DataList>
                                                                            
                                                                            </td>
                                                                    </tr>
                                                                    <tr>
                                                                  <td>
                                                                           <input type="hidden" id="PageSize" value="6" runat="server" style="width: 65px"/>
                                                                        
                                                                           <input type="hidden" id="CurrentPage" value="1" runat="server" style="width: 51px"/>
                                                                        
                                                                           <input type="hidden" id="TotalSize" runat="server" style="width: 81px"/>
                                                                           <asp:LinkButton ID="First" runat="server" Text="< First" OnClick="Page_DataList"> </asp:LinkButton>&nbsp;
                                                                           <asp:LinkButton id="Prev" Text="<< Previous"  OnClick="Page_DataList" runat="server" /> &nbsp;
                                                                           <asp:LinkButton id="Next" Text="Next >>" OnClick="Page_DataList" runat="server" />&nbsp;
                                                                           <asp:LinkButton ID="Last" runat="server" Text ="Last >" OnClick="Page_DataList"></asp:LinkButton></td>
                                                                    </tr>
                                                                </table>
                                                                </td>
                                                        </tr>
                                                        </table>
                                                        
                                                         </td>
                                                 </tr>
                                                  <tr> 
                                                        <td style="width: 167px">
                                                        </td>
                                                        <td>
                                                        </td>
                                                       <td >
                                                           <asp:LinkButton ID="btnViewCart" runat="server" OnClick="btnViewCart_Click" Font-Bold="True">View your order cart</asp:LinkButton><a href="CompleteOrderFood.aspx"></a></td>
                                                  </tr>
                                         </table>      
                                           </td>
                                           
                                        </tr>
                                  </table>
                              </td>
                         </tr>
                </table>
             </td>
        </tr>
    </table>
</asp:Content>
